package com.movitech.mobile.cz.base.purchase.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.movitech.mobile.cz.base.modules.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 * 战略采购年度总规划-详情
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("p_sp_overall_plan_detail")
@ApiModel
public class PSpOverallPlanDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 年度总规划id
     */
    @ApiModelProperty(value = "年度总规划id")
    @TableField("overall_plan_id")
    private String overallPlanId;
    /**
     * 年度
     */
    @ApiModelProperty(value = "年度")
    @TableField("plan_year")
    private Integer planYear;
    /**
     * 专业（s_strategic_category表id）
     */
    @ApiModelProperty(value = "专业（s_strategic_category表id）")
    @TableField("purchase_major_id")
    private String purchaseMajorId;
    /**
     * 品类（s_strategic_category表id）
     */
    @ApiModelProperty(value = "品类（s_strategic_category表id）")
    @TableField("purchase_category_id")
    private String purchaseCategoryId;
    /**
     * 主责部门（集团或地区公司id）
     */
    @ApiModelProperty(value = "主责部门（集团或地区公司id）")
    @TableField("responsibility_id")
    private String responsibilityId;
    /**
     * 采购量
     */
    @ApiModelProperty(value = "采购量")
    @TableField("purchased_amount")
    private Double purchasedAmount;
    /**
     * 计划启动时间
     */
    @ApiModelProperty(value = "计划启动时间")
    @TableField("plan_setup_time")
    private Date planSetupTime;
    /**
     * 计划完成时间
     */
    @ApiModelProperty(value = "计划完成时间")
    @TableField("plan_finished_time")
    private Date planFinishedTime;
    /**
     * 计划签订年限
     */
    @ApiModelProperty(value = "计划签订年限")
    @TableField("plan_signed_years")
    private Integer planSignedYears;
    /**
     * 计划采购渠道
     */
    @ApiModelProperty(value = "计划采购渠道")
    @TableField("plan_purchase_channels")
    private Integer planPurchaseChannels;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("plan_status")
    private Integer planStatus;
    /**
     * 采购方式
     */
    @ApiModelProperty(value = "采购方式")
    @TableField("purchase_type")
    private Integer purchaseType;
    /**
     * 采购项名称
     */
    @ApiModelProperty(value = "采购项名称")
    @TableField("purchase_item_name")
    private String purchaseItemName;
    /**
     * 是否已启动采购（0：否，1：是）
     */
    @ApiModelProperty(value = "是否已启动采购（0：否，1：是）")
    @TableField("init_process_flag")
    private Integer initProcessFlag;
    /**
     * 启动采购时间
     */
    @ApiModelProperty(value = "启动采购时间")
    @TableField("init_process_time")
    private Date initProcessTime;
    /**
     * 经办人
     */
    @ApiModelProperty(value = "经办人")
    @TableField("handle_user")
    private String handleUser;


}
